﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<%
    String Controller = ViewContext.RouteData.Values["controller"].ToString().ToLower();
    String Action = ViewContext.RouteData.Values["action"].ToString().ToLower();

    DrugStore.Models.DrugBussiness drugBussiness = new DrugStore.Models.DrugBussiness();
    List<DrugStore.Models.ProductCategory> categories = drugBussiness.GetAllCategory();
    
 %>
    <div>
        <ul style="list-style-type:none">
            <%
                foreach (DrugStore.Models.ProductCategory category in categories)
                {                         
             %>
                <li><a class="black" href="#"><%:category.CategoryName%></a></li>
             <% }%> 
        </ul>
    </div>
 